<?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

/* JoomLeague League Management and Prediction Game for Joomla!
 * @version $Id: edit_frontend.tpl.php 1126 2008-06-09 05:45:04Z julienv $
 * @package Joomleague
 * @copyright Copyright (C) 2007  JoomLeague
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see _joomleague_license.txt
 *  
 * Homepage: http://www.joomleague.de
 * Support: htt://www.joomleague.de/forum/
 * 
 * This file is part of JoomLeague.
 *  
 * JoomLeague is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * Please note that the GPL states that any headers in files and
 * Copyright notices as well as credits in headers, source files
 * and output (screens, prints, etc.) can not be removed.
 * You can extend them with your own credits, though...
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 *
 * The "GNU General Public License" (GPL) is available at
 * http://www.gnu.org/copyleft/gpl.html.
*/ 

?>

<div id="right">
	<div id="rightpad">
	
<!-- Header START -->	
		<div id="step">
			<div class="t">
        <div class="t">
          <div class="t"></div>
        </div>
      </div>
      <div class="m" align="left">
				<div class="far-right">
							<div class="button1-left"><div class="help"><a href="http://www.joomleague.de" alt="<?php echo _JL_ADMIN_MANUAL;?>" title="<?php echo _JL_ADMIN_MANUAL;?>" target="blank"><?php echo _JL_ADMIN_MANUAL;?></a></div></div>
							<div class="button1-left"><div class="forum"><a href="http://www.joomleague.de/forum/" alt="<?php echo _JL_ADMIN_FORUM;?>" title="<?php echo _JL_ADMIN_FORUM;?>" target="blank"><?php echo _JL_ADMIN_FORUM;?></a></div></div>
							<div class="button1-left"><div class="about"><a href="http://www.joomleague.de" alt="<?php echo _JL_ADMIN_INFO;?>" title="<?php echo _JL_ADMIN_INFO;?>" target="blank"><?php echo _JL_ADMIN_INFO;?></a></div></div>
				</div>
				<div class="button1-left"><div class="blank"><a href="index2.php?option=com_joomleague"></a></div></div><span class="step"><?php echo _JL_ADMIN_EDIT_FRONTEND_FRONTEND;?></span>
			</div>
      <div class="b">
        <div class="b">
          <div class="b"></div>
        </div>
      </div>
    </div>
<!-- Header END -->     

    <div id="installer">
    
<!-- Title 1 START -->    
			<div class="t">
        <div class="t">
          <div class="t"></div>
        </div>
      </div>
      <div class="m" align="left">
      	<h2><?php echo _JL_ADMIN_EDIT_FRONTEND_TITLE;?></h2>		
<!-- Titel 1 END -->

<!-- Info 1 START -->	 			
		<div id="step">
			<div class="t">
        <div class="t">
          <div class="t"></div>
        </div>
      </div>
      <div class="m" align="left">
<table class="content" cellpadding="4">
 <tr>
  <td><?php echo _JL_ADMIN_EDIT_FRONTEND_HINT1;?>
</td>
 </tr>
</table>
			</div>
      <div class="b">
        <div class="b">
          <div class="b"></div>
        </div>
      </div>
    </div>
<!-- Info 1 END -->     
  	
<!-- Content 1 START -->		
				<div class="install-text2">
<table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist2">
  <thead><tr>
    <th width="30%"><?php echo _JL_ADMIN_EDIT_FRONTEND_RESULTS_TABLES;?></th>
    <th width="100%"></th>
  </tr></thead>
  <tr>
    <td><?php echo _JL_ADMIN_EDIT_FRONTEND_RESULTS_TABLES_ALL_IN_ONE;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=showResultsRank&p=%s", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=showResultsRank&p=%s", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr>
  <tr>
    <td><?php echo _JL_ADMIN_EDIT_FRONTEND_RESULTS_TABLES_BYDIV_ALL_IN_ONE;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=showResultsRank&layout=bydiv&p=%s", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=showResultsRank&layout=bydiv&p=%s", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr>
  <tr>
    <td><?php echo _JL_ADMIN_EDIT_FRONTEND_RESULTS_TABLES_RESULTS;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=showResults&p=%s", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=showResults&p=%s", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr>  
  <tr>
    <td><?php echo _JL_ADMIN_EDIT_FRONTEND_RESULTS_TABLES_RESULTS_ALL;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=showPlan&mode=1&p=%s", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=showPlan&mode=1&p=%s", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr>  
  <tr>
    <td><?php echo _JL_ADMIN_EDIT_FRONTEND_RESULTS_TABLES_RANKING_ALL;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=showRanking&p=%s", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=showRanking&p=%s", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr>
  <tr>
    <td><?php echo _JL_ADMIN_EDIT_FRONTEND_RESULTS_TABLES_RANKING_HOME;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=showRanking&p=%s&type=1", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=showRanking&p=%s&type=1", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr>
  <tr>
    <td><?php echo _JL_ADMIN_EDIT_FRONTEND_RESULTS_TABLES_RANKING_AWAY;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=showRanking&p=%s&type=2", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=showRanking&p=%s&type=2", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr>
  <tr>
    <td><?php echo _JL_ADMIN_EDIT_FRONTEND_RESULTS_TABLES_TRIPLE;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=showRanking&p=%s&type=3", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=showRanking&p=%s&type=3", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr>  
  <tr>
    <td nowrap="nowrap"><?php echo _JL_ADMIN_EDIT_FRONTEND_RESULTS_TABLES_LASTX;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=showRanking&p=%s&last=6", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=showRanking&p=%s&last=6", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr> 
  <tr>
    <td><?php echo _JL_ADMIN_EDIT_FRONTEND_RESULTS_TABLES_FEVER_CHART;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=showCurve&p=%s&tid=1", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=showCurve&p=%s&tid=1", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr>     
  <tr>
    <td nowrap><?php echo _JL_ADMIN_EDIT_FRONTEND_RESULTS_TABLES_CROSS_RESULTS;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=showMatrix&p=%s", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=showMatrix&p=%s", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr>    
  <tr>
    <td nowrap><?php echo _JL_ADMIN_EDIT_FRONTEND_MATCHPLAN;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=showPlan&tid=1&p=%s", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=showPlan&tid=1&p=%s", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr>
   
  
  
<?php if($project->usePrediction()){?>  
  <thead><tr>
    <th width="30%"><?php echo _JL_ADMIN_EDIT_FRONTEND_TIP;?></th>
    <th width="100%"></th>
  </tr></thead>
  <tr>
    <td><?php echo _JL_ADMIN_EDIT_FRONTEND_DO_TIPS;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=doTips&p=%s", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=doTips&p=%s", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr>
  <tr>
    <td><?php echo _JL_ADMIN_EDIT_FRONTEND_TIP_RANKING_ALL;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=showTipRanking&p=%s&mode=all", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=showTipRanking&p=%s&mode=all", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr>
  <tr>
    <td><?php echo _JL_ADMIN_EDIT_FRONTEND_TIP_RANKING_MATCHDAY;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=showTipRanking&p=%s&mode=1", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=showTipRanking&p=%s&mode=1",  JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr>
  <tr>
    <td><?php echo _JL_ADMIN_EDIT_FRONTEND_TIP_OVERVIEW;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=showTipResults&p=%s", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=showTipResults&p=%s", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr>
  <tr>
    <td nowrap><?php echo _JL_ADMIN_EDIT_FRONTEND_TIP_USER_PAGE;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=showUser&p=%s&uid=62", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=showUser&p=%s&uid=62", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr> 
  <tr>
    <td nowrap><?php echo _JL_ADMIN_EDIT_FRONTEND_TIP_RULES;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=showTipRules&p=%s", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=showTipRules&p=%s", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr>               
<?php } ?>  
    
  <thead><tr>
    <th width="30%"><?php echo _JL_ADMIN_EDIT_FRONTEND_DETAILS;?></th>
    <th width="100%"></th>
  </tr></thead>
  <tr>
    <td nowrap><?php echo _JL_ADMIN_EDIT_FRONTEND_DETAILS_SEASON_STATS;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=showStats&p=%s", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=showStats&p=%s", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr>  
  <tr>
    <td nowrap><?php echo _JL_ADMIN_EDIT_FRONTEND_DETAILS_MATCHREPORT;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=showReport&p=%s&mid=1", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=showReport&p=%s&mid=1", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr>
  <tr>
    <td nowrap><?php echo _JL_ADMIN_EDIT_FRONTEND_DETAILS_PLAYER;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=showPlayer&p=%s&pid=1", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=showPlayer&p=%s&pid=1", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr>  
  <tr>
    <td nowrap><?php echo _JL_ADMIN_EDIT_FRONTEND_DETAILS_PLAYGROUNDS;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=showPlayground&p=%s&pgid=1", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=showPlayground&p=%s&pgid=1", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr>
  <tr>
    <td nowrap><?php echo _JL_ADMIN_EDIT_FRONTEND_DETAILS_EVENT_STATS;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=eventsStats&p=%s&evid=1", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=eventsStats&p=%s&evid=1", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr>
  <thead><tr>
    <th width="30%"><?php echo _JL_ADMIN_EDIT_FRONTEND_TEAM_INFO;?></th>
    <th width="100%"></th>
  </tr></thead>
    
<?php  
  foreach($teams as $team){
    echo sprintf("<tr><td>%s</td><td>",  $team->name);
    echo sprintf('<a href="%s/%s&func=showTeamInfo&p=%s&tid=%s" target="_blank">', _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id, $team->id);
	echo sprintf("%s&func=showTeamInfo&p=%s&tid=%s</td></tr>", JL_COMPONENT_LINK, $project->id, $team->id);
  }    
?>        
  <thead><tr>
    <th width="30%"><?php echo _JL_ADMIN_EDIT_FRONTEND_TEAM_PLAYERS;?></th>
    <th width="100%"></th>
  </tr></thead>
    
<?php  
  foreach($teams as $team){
    echo sprintf("<tr><td>%s</td><td>",  $team->name);
    echo sprintf('<a href="%s/%s&func=showPlayers&p=%s&ttid=%s" target="_blank">', _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id, $team->teamtoolid);
	echo sprintf("%s&func=showPlayers&p=%s&ttid=%s</td></tr>", JL_COMPONENT_LINK, $project->id, $team->teamtoolid);
  }    
?>

  <thead><tr>
    <th width="30%"><?php echo _JL_ADMIN_EDIT_FRONTEND_ABOUT;?></th>
    <th width="100%"></th>
  </tr></thead>
  <tr>
    <td nowrap><?php echo _JL_ADMIN_EDIT_FRONTEND_ABOUT_JL;?></td>
    <td>
      <a href="<?php printf("%s/%s&func=about&p=%s", _JOOMLA_JL_LIVE_SITE, JL_COMPONENT_LINK, $project->id);?>" target="_blank">
      <?php printf("%s&func=about&p=%s", JL_COMPONENT_LINK, $project->id);?></a>
    </td>
  </tr>  
</table>
				</div>
<!-- Content 1 END -->	
		
        <div class="clr"></div>
      </div>
      <div class="b">
        <div class="b">
          <div class="b"></div>
        </div>
      </div>
		</div>
	</div>
</div>
<div class="clr"></div>
